package com.caigou.modules.center.adapter

import com.caigou.modules.center.R
import com.caigou.modules.center.bean.MyDynamicItem
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

/**
 * @author #Suyghur.
 * Created on 2021/11/04
 */
class MyDynamicAdapter(dataset: MutableList<MyDynamicItem>) : BaseQuickAdapter<MyDynamicItem, BaseViewHolder>(R.layout.item_my_dynamic_list, dataset) {
    override fun convert(holder: BaseViewHolder, item: MyDynamicItem) {
        holder.setImageResource(R.id.item_my_dynamic_iv_icon, item.imgRes)
        holder.setText(R.id.item_my_follow_tv_nickname, item.desc)
    }
}